package com.changpay.zywy.mvp.presenter

import com.changpay.zywy.base.BasePresenter
import com.changpay.zywy.ext.ss
import com.changpay.zywy.mvp.contract.*
import com.changpay.zywy.mvp.model.*


/**
 * Created by chenxz on 2018/5/27.
 */
class RankPresenter : BasePresenter<RankContract.Model, RankContract.View>(), RankContract.Presenter {
    override fun getRank(map: MutableMap<String, String>) {
        mModel?.getRank(map)?.ss(mModel, mView) {
            mView?.showData(it.result)
        }
    }


    override fun createModel(): RankContract.Model? = RankModel()

}